package org.example.springioc01.bean;


import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.UUID;

@ToString
@Component
public class Cat {
    @Value("#{T(java.util.UUID).randomUUID().toString()}")
    private String id;
    @Value("${cat.name}")
    private String name;
    @Value("#{10*100}")
    private String color;
   @Value("10")
    private int age;

}
